<template>
  <div>	
	<div class="md-modal" v-bind:class="{'md-show':mdShow}">
        <div class="md-modal-inner">
            <div class="md-top">
              <a class="md-close" @click="closeModal">+</a>
            </div>
            <div class="md-content">
              <div class="confirm-tip">
                <slot name="message"></slot>
              </div>
              <div class="btn-wrap" @click="closeModal">
                <slot name="btnGroup"></slot>
              </div>
            </div>
        </div>
        <div class="md-overlay" @click="closeModal"></div>
    </div>
  </div>  
</template>
<script>
	export default{
		props:["mdShow"],//由父组件传递过来的
		data(){
			return{
				
			}
		},
		methods:{
			closeModal(){
				this.$emit("close");//触发父组件的close
			}
		}
	}
</script>